# coding:utf-8
import unittest
from api import apiCommon
import json


class TestRequest(unittest.TestCase):

    def test_get(self):
        url = 'http://localhost:8080/hello'
        r = apiCommon.sysGet(url)
        self.assertEqual(r.status_code, 200)
        response = json.loads(r.text)
        status = response['status']
        self.assertEqual(status, '200')
